﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserControls_MyWebside : System.Web.UI.UserControl
{
    // Fields
    private string _Select;

    public string style = "";

    // Methods
    protected void Page_Load(object sender, EventArgs e)
    {
        switch (this.Select)
        {
            case "coupon":
                this.coupon.Attributes.Add("class", "current");
                return;

            case "order":
                this.order.Attributes.Add("class", "current");
                return;

            case "refer":
                this.account.Attributes.Add("class", "current");
                return;

            case "credit":
                this.credit.Attributes.Add("class", "current");
                return;

            case "settings":
                this.settings.Attributes.Add("class", "current");
                return;
        }
        this.order.Attributes.Add("class", "current");
    }

    // Properties
    public string Select
    {
        get
        {
            return this._Select;
        }
        set
        {
            this._Select = value;
        }
    }

}